//
//  HomeNormalViewCell.swift
//  weiboLQ
//
//  Created by 半缘君 on 15/12/14.
//  Copyright © 2015年 banyuanjun.cn. All rights reserved.
//

import UIKit
let HomeNormalViewCellID = "HomeNormalViewCellID"
class HomeNormalViewCell: HomeTableViewCell {

    override var viewModel:StatusViewModel? {
        didSet {
//            topView.viewModel = viewModel
        statusPicture.snp_updateConstraints { (make) -> Void in
            let offset = (viewModel?.thumbnail_pics?.count > 0) ? LQHomeCellMargin : 0
            make.top.equalTo(centerLabel.snp_bottom).offset(offset)
//            print("\(offset)============")
        }
        }
    }

}


extension HomeNormalViewCell {
    override func setupUI(){
        super.setupUI()
        addStatusPictureView()
    }
        private func addStatusPictureView () {
//            contentView.addSubview(statusPicture)
            statusPicture.snp_makeConstraints { (make) -> Void in
                make.top.equalTo(centerLabel.snp_bottom)
                make.left.equalTo(contentView).offset(LQHomeCellMargin)

            }
        }
}